CC = gcc
OBJS = main.o functions.o generator.o depot.o gui.o

gbk: $(OBJS)
	$(CC) $(OBJS) -o $@

main.o: main.c
	$(CC) -c $^

functions.o: functions.c
	$(CC) -c $^

generator.o: generator.c
	$(CC) -c $^

depot.o: depot.c
	$(CC) -c $^

gui.o: gui.c
	$(CC) -c $^

.PHONY: all run clean

clean:
	rm -r -f *.o *~

run:
	./gbk -h

all:
	make clean && make run
